package com.itguigu.fruit.view;

public class Client {
    public static void main(String[] args) {
        showMainMenu m = new showMainMenu();
        boolean flag=true;
       while (flag){
           int sle= m.show();
           switch (sle){
               case 1:
                   m.showSelete();
                   break;
               case 2:
                   m.addFruit();
                   break;
               case 3:
                   m.showFruitInfo();
                   break;
               case 4:
                   m.delFruit();
                   break;
               case 5:
                   flag=m.exit();
                   break;
               default:
                   System.out.println("你不按套路出牌");
                   break;
           }

       }
        System.out.println("感谢使用，再见！");


    }

}
